﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace eCompany.Forms
{
    public partial class big_graph_form : Form
    {
        private List<eManager.ChartItem> m_lst1 = null;
        private List<eManager.ChartItem> m_lst2 = null;

        [PreEmptive.Attributes.Feature("BigChart.Show")]
        public big_graph_form(List<eManager.ChartItem> lst1, List<eManager.ChartItem> lst2)
        {
            m_lst1 = lst1;
            m_lst2 = lst2;
            InitializeComponent();
        }

        private void big_graph_form_Load(object sender, EventArgs e)
        {
            foreach (eCompany.eManager.ChartItem ci in m_lst1)
            {
                chartCtrl.Series[0].Points.AddXY(ci.date, ci.volume);
            }

            foreach (eCompany.eManager.ChartItem ci in m_lst2)
            {
                chartCtrl.Series[1].Points.AddXY(ci.date, ci.volume);
            }
        }
    }
}
